/* 季节常量Arr与Map */
const seasonArr = [
  {label: "全年", value: 0,},
  {label: "春季", value: 1,},
  {label: "夏季", value: 2,},
  {label: "秋季", value: 3,},
  {label: "冬季", value: 4,},
];
const seasonMap: {[key: number]: string} = {};
seasonArr.forEach(season => seasonMap[season.value] = season.label);

/* 油腻程度常量Arr与Map */
const oilyDegreeArr = [
  {label: "纯素", value: 0,},
  {label: "小荤", value: 1,},
  {label: "大荤", value: 2,},
];
const oilyDegreeMap: {[key: number]: string} = {};
oilyDegreeArr.forEach(oilyDegree => oilyDegreeMap[oilyDegree.value] = oilyDegree.label);

/* 菜品种类常量Arr与Map */
const dishTypeArr = [
  {label: "凉菜", value: 0,},
  {label: "炒菜", value: 1,},
  {label: "红烧", value: 2,},
  {label: "汤羹", value: 3,},
  {label: "速食", value: 4,},
];
const dishTypeMap: {[key: number]: string} = {};
dishTypeArr.forEach(dishType => dishTypeMap[dishType.value] = dishType.label);

export {
  seasonArr,
  seasonMap,
  oilyDegreeArr,
  oilyDegreeMap,
  dishTypeArr,
  dishTypeMap,
}